/**
 * ____________________ *
 *  ____ ____ ____ _  _ *
 *  |___ [__] |--< |\/| *
 * ____________________ *
 *
 * THE CORM PROJECT
 *
 * This file may only be used in accordance with the
 * terms of the Academic Free License ("AFL") v. 3.0,
 * as published by the Open Software Initiative.  A
 * copy of this license is provided in this source
 * release, and may be viewed online at:
 *
 * (http://www.opensource.org/licenses/afl-3.0.php)
 */
package org.eremite.corm.party.address;

import org.eremite.corm.Archetype;
import org.eremite.corm.party.Party;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class Address
        extends Archetype {

    private Set<Party> parties = new HashSet<Party> ();
    private Date validFrom = new Date();
    private Date validTo = new Date();
    private long id;

    public Address() {}

    public long getID() { return id; }
    public void setID(long id) { this.id = id; }

    public Date getValidFrom() {
        return validFrom;
    }

    public void setValidFrom(Date validFrom) {
        this.validFrom = validFrom;
    }

    public Date getValidTo() {
        return validTo;
    }

    public void setValidTo(Date validTo) {
        this.validTo = validTo;
    }

    public Set<Party> getParties() {
        return parties;
    }

    public void setParties(Set<Party> parties) {
        this.parties = parties;
    }
}